package org.framework.bean;

import java.util.HashMap;
import java.util.Map;

/**
 * 返回试图类
 * @Author xuelongjiang
 */
public class View {

    private String path;

    private Map<String,Object> model;


    public View(String path) {
        this.path = path;
        this.model = new HashMap<String, Object>();
    }

    public View addModel(String name,Object value){
        model.put(name,value);
        return  this;
    }


    public String getPath() {
        return path;
    }

    public Map<String, Object> getModel() {
        return model;
    }
}
